package com.butterfly.rest.resource.restlet.status;


import org.springframework.http.HttpStatus;

public enum AdxErrorCode {

    INVALID_FORMAT_USER_ID(1001, "invalid_user_id", "Invalid user id", HttpStatus.BAD_REQUEST),
    USER_ID_NOT_FOUND(1002, "user_id_not_found", "User id not found", HttpStatus.NOT_FOUND),
    INVALID_PAGE_FORMAT(1003, "invalid_page_format_id", "Invalid page format", HttpStatus.BAD_REQUEST),
    INVALID_PAGE_SIZE_FORMAT(1004, "invalid_page_size_id", "Invalid page size format", HttpStatus.BAD_REQUEST);


    private int errorCode;

    private String errorMessage;

    private String errorDescription;

    private HttpStatus httpStatus;

    AdxErrorCode(int errorCode, String errorMessage, String errorDescription, HttpStatus httpStatus) {
        this.errorCode = errorCode;
        this.errorMessage = errorMessage;
        this.errorDescription = errorDescription;
        this.httpStatus = httpStatus;
    }

    public int getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(int errorCode) {
        this.errorCode = errorCode;
    }

    public String getErrorMessage() {
        return errorMessage;
    }

    public void setErrorMessage(String errorMessage) {
        this.errorMessage = errorMessage;
    }

    public HttpStatus getHttpStatus() {
        return httpStatus;
    }

    public void setHttpStatus(HttpStatus httpStatus) {
        this.httpStatus = httpStatus;
    }

    public String getErrorDescription() {
        return errorDescription;
    }

    public void setErrorDescription(String errorDescription) {
        this.errorDescription = errorDescription;
    }
}
